package com.rest.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rest.model.DataM;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 * @Author laoxu
 * @Date 2019/11/5 22:27
 **/
@Mapper
public interface DataMDao extends BaseMapper<DataM> {

    List<DataM> selectAll(Integer num,Integer size);

    int update(DataM user);

    DataM getDataByUrl(String url);

    DataM getDataByIdAndUrl(@Param("id") Integer id,@Param("url")  String url);
}
